<template>
  <van-list v-model="isLoding" :finished="finished" finished-text="没有更多了">
    <van-cell @click="clickItem(item._id)" v-for="item in list" :key="item.id" :title="item.title" />
  </van-list>
</template>

<script>
export default {
  name: "AList",
  props: {
    loading: Boolean,
    finished: Boolean,
    list: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  data() {
    return {
      isLoding: this.loading,
    };
  },
  methods: {
    onLoad() {
      this.$emit("load");
    },
    clickItem(id){
      this.$emit('clickItem',id)
    }
  },
};
</script>

<style>
</style>